#ifndef ___MSG_IMP_RAW_STREAM___
#define ___MSG_IMP_RAW_STREAM___

#include "Message/MsgIf.h"

class MsgInRawStream : public IMsg
{
public:
	MsgInRawStream();

	virtual void	setMsgID(int nID);
	virtual int		getMsgID();

	virtual void	setMsgCate(int nCate);
	virtual int		getMsgCate();	

	//
	//	decode a message from a stream
	//
	virtual bool decode(MsgIStream& stream);
	//
	//	encode a message into a stream
	//
	virtual bool encode(MsgOStream& stream);

	//
	//	dump the message information to log
	//
	virtual void dump();

	//
	//	check validation of message
	//
	virtual bool validate();
private:

	MsgBufferPtr	m_theRawBuffer;
};

#endif
